using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace RideMe.Core
{
    public class ProjectFileEventArgs : EventArgs 
    {
        private string _filePath;

        public string FilePath
        {
            get { return _filePath; }
        }

        public string FileName
        {
            get { return Validator.ValidString(_filePath) ? FileSystemService.GetFilePathWithFolderName(_filePath) : string.Empty; }
        }

        private int _offset = -1;

        public int Offset
        {
            get { return _offset; }
            set { _offset = value; }
        }

        private int _length = -1;

        public int Length
        {
            get { return _length; }
            set { _length = value; }
        }

        public ProjectFileEventArgs(string filePath)
        {
            this._filePath = filePath;
        }
    }
}
